<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<SCRIPT LANGUAGE="JavaScript">
<!--

<!-- Begin
function Check(chk)
{
if(document.form.Check_ctr.checked==true){
for (i = 0; i < chk.length; i++)
chk[i].checked = true ;
}else{
for (i = 0; i < chk.length; i++)
chk[i].checked = false ;
}
}

// End -->
</script>

<s:form id="form" name="form" theme="simple" action="deleteOrCompareItems.htm">
<s:hidden name="redirectAction" value="myWantedWatchingOthers" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			<div class="blue-text16" style="margin: 0px 0px 0px 0px">
				<s:text name="mywantedwatchingOthersitems.tendertitle" />
			</div>
			<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
			<div style="margin: 0px 0px 12px 0px">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td>
								<s:actionerror cssClass="error-text" theme="simple"/>
								<s:actionmessage cssClass="common-text" theme="simple"/>
							</td>
						</tr>
						<tr>
							<td width="100%">
								<table width="100%" cellpadding="0" cellspacing="0" class="filepc">
									<tr>
										<td colspan="9">
											<table width="100%">
												<tr>
															<td rowspan="3" width="5%" align="center" valign="top" class="grid-header-bg grid-header-text">
																<input type="checkbox" class="textfiled" name="Check_ctr"
																	value="yes"
																	onchange="CheckCheckAll(document.form.Check_ctr, document.form.check_list)" />
															</td>
															<td rowspan="3" width="10%" align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="label.system.Photo" />
															</td>
															<td align="center" width="35%" valign="top"
																class="grid-header-bg grid-header-text">
																<a href="tenderWatchingOthers.htm?sort=title"><s:text name="UserShop.para4" /></a>
															</td>
															<td align="center" width="10%" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="mywantedwatchingOthersitems.requester" />
															</td>
															<td align="center" width="10%" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="mywantedwatchingOthersitems.best" />
															</td>
															<td align="center" width="10%" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="sellingfixprice.bestoffer" />
															</td>
															<td align="center" width="15%" valign="top"
																class="grid-header-bg grid-header-text">
																<a href="tenderWatchingOthers.htm?sort=price"><s:text name="createwanted.pay" /></a>
															</td>
															<td rowspan="3" width="10%" align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<a href="tenderWatchingOthers.htm?sort=time"><s:text name="lable.timeleft" /> </a>
															</td>
															<td rowspan="3" width="10%" align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="label.system.Actions" />
															</td>
														</tr>
														<tr>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="Sub title" />
															</td>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="advertisingWatchingothers.rating" />
															</td>

															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="advertisingWatchingothers.rating" />
															</td>
															<td align="center" valign="top" rowspan="2"
																class="grid-header-bg grid-header-text">
																<s:text name="list_header_offers" />
															</td>
															<td align="center" valign="top" rowspan="2"
																class="grid-header-bg grid-header-text">
																<s:text name="mywantedwatchingOthersitems.quntitywanted" />
															</td>
														</tr>
														<tr>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																	<s:text name="transactionsNotYetInvoiced.ItemNr" />
															</td>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																	<s:text name="buyPurchase.country" />
															</td>
															<td align="center" valign="top"
																class="grid-header-bg grid-header-text">
																<s:text name="buyPurchase.country" />
															</td>
														</tr>
													</table>
													<display:table name="itemsList" cellpadding="0" length="3" style="width: 100%;" cellspacing="1" requestURI="" id="row" class="common-text" pagesize="${listingOptions.listingsItemsPerPage}">
														<display:column class="grid-bg common-text">
															<table width="100%">
																<tr>
																	<td rowspan="2" width="5%"  align="center" valign="top" class="grid-bg common-text">
																		<input type="checkbox" name="check_list" id="check_list" value="<s:property value="#attr.row.itemId"/>"  />
																	</td>
																	<td rowspan="3" width="10%"  align="center" valign="middle"
																		class="grid-bg common-text">
																		<s:if test="#attr.row.thumbImage != null && #attr.row.thumbImage !=''">
																		<a href="showItem.htm?cid=<s:property value="#attr.row.itemId"/>&p=makeOffer">
																			<img src="servlet/ImageServlet?dto=ItemsDTO&id=<s:property value="#attr.row.itemId"/>"
																				alt="" class="product-border" height="45" width="45">
																		</a>
																		</s:if>
																		<s:else>
																		<a href="showItem.htm?cid=<s:property value="#attr.row.itemId"/>&p=makeOffer">
																			<img src="images/no_image.gif" alt="No Image" height="45" width="45"/>
																		</a>
																		</s:else>
																	</td>
																	<td align="center" valign="top" width="35%"
																		class="grid-bg common-text">
																		<a href="showItem.htm?cid=<s:property value="#attr.row.itemId"/>&p=makeOffer">
																			<s:property value="#attr.row.title"/>
																		</a>
																	</td>
																	<td align="center" valign="top" width="10%"
																		class="grid-bg common-text">
																			<a href="viewMyFeedback.htm?userId=<s:property value="#attr.row.userId.userId"/>" >
																				<s:property value="#attr.row.userId.userId"/>
																			</a>
																	</td>
																	<td align="center" valign="top" width="10%"
																		class="grid-bg common-text">
																		<a href="viewMyFeedback.htm?userId=<s:property value="#attr.row.itemWantedBestOffer.userId.userId"/>" >
																			<s:property value="#attr.row.itemWantedBestOffer.userId.userId" />
																		</a>
																	</td>
																	<td align="center" valign="top" width="10%"
																		class="grid-bg common-text">
																		<s:property value="#attr.row.itemWantedBestOffer.bestOffer" />
																	</td>
																	<td align="center" valign="top" width="10%"
																		class="grid-bg common-text">
																		<s:property value="#attr.row.currency.symbol" /> <s:property value="#attr.row.buyPrice" />
																	</td>
																	<td rowspan="3" align="center" valign="top" width="15%"
																		class="grid-bg common-text">
																		<s:if test="%{#attr.row.closed}">
																			<b>Closed</b><br>
																			<s:date name="#attr.row.endTime" format="dd/MM/yyyy HH:mm:ss"/>
																		</s:if>
																		<s:else>
																			<s:date name="#attr.row.endTime" nice="true"/>
																		</s:else>
																	</td>
																	<td align="center" valign="top" class="grid-bg common-text" id="mddm" width="10%" >
																		<a href="#" class="common-link"
																			onmouseover="mopen('<s:property value="#attr.row.itemId" />', this, 'common-link', 'right', <s:property value="#attr.row.itemId" />)"
																			onmouseout="mclosetime()"><s:text name="lable.select" /></a>
																		<div id="<s:property value="#attr.row.itemId" />" onmouseover="mcancelclosetime()"
																			onmouseout="mclosetime()" style="visibility: hidden">
																			<a href="askSeller.htm?cid=<s:property value="#attr.row.itemId" />"><s:text name="Contact_Buyer" /></a>
																			<a href="deleteWatchingOthers.htm?cid=<s:property value="#attr.row.itemId" />"><s:text name="label.system.Delete" /></a>
																			<a href="viewSimilarItem.htm?cid=<s:property value="#attr.row.itemId" />">View similar items</a>
																			<s:if test="#attr.row.favoritesUsers == null">
																				<a href="addToFavoriteUser.htm?userId=<s:property value="#attr.row.userId.id" />&action=myWantedWatchingOthers"><s:text name="lable.addfavoriteuser" /></a>
																			</s:if>
																			<s:if test="#attr.row.itemNote.id != null && #attr.row.itemNote.id != 0"><a href="addNotes.htm?cid=<s:property value="#attr.row.itemNote.id" />&action=editnote&p=myWantedWatchingOthers"><s:text name="edit_note" /> </a></s:if>
																			<s:else><a href="addNotes.htm?cid=<s:property value="#attr.row.itemId" />&action=addnote&p=myWantedWatchingOthers"><s:text name="lable.addnote" /></a></s:else>
																		</div>
																	</td>
																</tr>
																<tr>
																	<td align="center" valign="top"
																		class="grid-bg common-text">
																		<s:property value="#attr.row.subTitle"/>
																	</td>
																	<td align="center" valign="top"
																		class="grid-bg common-text">
																		<s:property value="#attr.row.selfRate"/>
																	</td>
																	<td align="center" valign="top"
																		class="grid-bg common-text">
																		<s:property value="#attr.row.userRating.rating"/>
																	</td>
																	<td align="center" valign="top" width="10%" rowspan="2"
																		class="grid-bg common-text">
																		<s:property value="#attr.row.itemWantedBestOffer.offersNo"/>
																	</td>
																	<td align="center" valign="top" rowspan="2"
																		class="grid-bg common-text">
																		<s:property value="#attr.row.quantity"/>
																	</td>
																</tr>
																<tr>
																	<td>
														<s:if test="#attr.row.giftIcon != null ">
																	<img src="images/<s:property value="#attr.row.giftIcon"/>"
																	title="" border="0">
																</s:if>
														</td>
															<td align="center" valign="top"
																class="grid-bg common-text">

																<s:if test="#attr.row.bids.size > 0">
																	<img src="images/type_auction_icon.gif" title="Auction"
																		border="0">
																</s:if>

																<s:property value="#attr.row.itemId"/>

																<s:if test="#attr.row.HomePageFeatured == true">
																	<img src="images/featured.gif" title="Featured"
																		border="0">
																</s:if>
																<s:if test="#attr.row.bids.size >= listingOptions.coolItemBids">
																	<!-- bids.size >= listingOptions.coolItemBids -->
																	<img src="images/cool.gif" title="Cool" border="0">
																</s:if>
																<s:if test="#attr.row.buyPrice > 0.0">
																	<img src="images/buyitnow.gif" title="Buy Now"
																		border="0">
																</s:if>
															</td>
																	<td align="center" valign="top" class="grid-bg common-text">
																		<s:property value="#attr.row.locationCategoriesByCountry.categoryName"/>
																	</td>
																	<td align="center" valign="top"
																		class="grid-bg common-text">
																		<s:property value="#attr.row.locationCategoriesByCountry.categoryName"/>
																	</td>
																</tr>
																<s:if test="#attr.row.itemNote.note != null && #attr.row.itemNote.note != ''">
																<tr>
																	<td class="common-text" colspan="9" bgcolor="#EEEEEE">
																		<b><s:text name="label_My Note" />:&nbsp;&nbsp;&nbsp; </b><s:property value="#attr.row.itemNote.note"/>
																	</td>
																</tr>
																</s:if>
															</table>
														</display:column>
													</display:table>
												</tr>
											</table>
		</td>
	</tr>

</table>
<div style="margin: 10px 0px 0px 0px">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td width="5%" valign="top">
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td>
							<img src="images/middle/btn-grey-left1.gif" alt=" " width="6"
								height="23" />
						</td>
						<td class="btn-grey-middle1 ">
							<s:submit name="deleteMsg" value="%{getText('button.Delete')}" theme="simple"
								cssClass="submit-btn-common" onclick="return wantToDelete('Are You sure you want to delete Item');" />
						</td>
						<td>
							<img src="images/middle/btn-grey-right1.gif" alt=" " width="6"
								height="23" />
						</td>
					</tr>
				</table>
			</td>
			<td width="5%" valign="top">
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td>
							<img src="images/middle/btn-grey-left1.gif" alt=" " width="6"
								height="23" />
						</td>
						<td class="btn-grey-middle1 ">
							<s:submit name="compare" value="Compare" cssClass="submit-btn-common"></s:submit>
						</td>
						<td>
							<img src="images/middle/btn-grey-right1.gif" alt=" " width="6"
								height="23" />
						</td>
					</tr>
				</table>
			</td>
			<td valign="top">
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td>
							<img src="images/middle/btn-grey-left1.gif" alt=" " width="6"
								height="23" />
						</td>
						<td class="btn-grey-middle1 ">
							<input type="reset" name="Reset" value="Reset"
								class="submit-btn-common" />
						</td>
						<td>
							<img src="images/middle/btn-grey-right1.gif" alt=" " width="6"
								height="23" />
						</td>
					</tr>
				</table>
			</td>
			<td align="right" valign="top">
				<div class="common-text" style="margin: 0px 0px 0px 10px"></div>
			</td>
		</tr>
	</table>
</div></div></td></tr></table>
</s:form>